package org.zht.dormpro.dorm.service;

import org.apache.ibatis.annotations.Param;
import org.zht.dormpro.auth.bean.PageBean;
import org.zht.dormpro.dorm.bean.ClassDTO;
import org.zht.dormpro.dorm.model.TbClass;
import org.zht.dormpro.dorm.model.TbCollege;

import java.util.ArrayList;
import java.util.List;

public interface IClassService {
    List<ClassDTO> getClassByCondition(PageBean pageBean);

    boolean addClass(TbClass tbClass);

    TbClass selectByPrimaryKey(Integer id);

    boolean editClass(TbClass tbClass);

    boolean deleteClass(Integer id);

    boolean batchRemoveClass(ArrayList<String> claIds);

    List<TbClass> getClassByMajId(String majId);

    List<TbClass> getAllClass(@Param("all") int all);
}
